<?php


namespace app\common\gateway\data;

use GatewayWorker\Lib\Gateway;

class UserSender implements Sender
{
    protected $uid;

    public function __construct($uid)
    {
        $this->uid = $uid;
    }

    public function send(Data $data)
    {
        Gateway::sendToUid($this->uid, $data->getData());
    }
}
